package com.keshihao.eduservice.controller;

import com.keshihao.commonutils.R;
import jdk.nashorn.internal.parser.Token;
import org.springframework.web.bind.annotation.*;

/**
 * @author Mr.Ke
 * @create 2020-05-15-20:14
 */
@CrossOrigin
@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {

    @PostMapping("/login")
    public R login(){
        return R.ok().data("token","admin");
    }

    @GetMapping("/info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://s1.ax1x.com/2020/05/15/YyP0L6.jpg");
    }

}
